<%--
  Created by IntelliJ IDEA.
  User: linhui
  Date: 2018/10/18
  Time: 13:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    request.setCharacterEncoding("UTF-8");response.setCharacterEncoding("utf-8");
%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!DOCTYPE html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>日常背锅</title>


</head>
<body>


<div style="text-align: center; width: 500px; border: green solid 1px;">
    <img alt="" src="img/bqblg.jpg" style="margin: 0 auto;" />
</div>
<div>

    <form action="./hello" method="post" enctype="application/x-www-form-urlencoded" target="_self">

        <input type="hidden" name="bl" value=""/>
        <h3>账号: <input type="text" name="Account" value=""/></h3>
        <h3>密码:<input type="password" name="Password" value=""/></h3>
        <input type="submit" value="登录"
               onclick="
               bl.value='L';
if(Account.value===''){
    alert('Account shouldn\'t be empty.');
    return false;
}else if(Password.value===''){
    alert('Password shouldn\'t be empty.');
    return false;
}
"/>
        <input type="submit" value="注册"
               onclick="
               bl.value='S';
"/>


    </form>
</div>


</body>
</html>







